home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_10613.txt < prev    next >
Text File  |  1990-10-02  |  11KB  |  494 lines

  1. -- card: 10613 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 8862
  3. -- flags: 0000
  4. -- background id: 10462
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global examFlag,dropFlag,useFlag,dropRoom,cardID,carried,invFlag
  9.   set the cursor to 4
  10.   put "" into card field 2
  11.   put carried into card field 3
  12.   if examFlag=true
  13.   then put "click on the object to examine" into card field 1
  14.   if dropFlag=true
  15.   then put "click on the object to drop" into card field 1
  16.   if useFlag=true
  17.   then put "click on the object to use" into card field 1
  18.   if carried = 0 then show card button "no objects carried"
  19.   else hide card button "no objects carried"
  20.   put cardID into dropRoom
  21.   put true into invFlag
  22. end openCard
  23.  
  24. on closeCard
  25.   set the cursor to 4
  26. end closeCard
  27.  
  28. on quitGame
  29.   global knifeLoc,noduleLoc,ladderLoc,bombLoc,keyLoc,gemLoc,orbLoc
  30.   set the cursor to 4
  31.   hide card button knife of card id knifeLoc
  32.   hide card button nodule of card id noduleLoc
  33.   hide card button ladder of card id ladderLoc
  34.   hide card button bomb of card id bombLoc
  35.   hide card button gem of card id gemLoc
  36.   hide card button key of card id keyLoc
  37.   hide card button orb of card id orbLoc
  38.   go home
  39.   show menuBar
  40. end quitGame
  41.  
  42.  
  43.  
  44.  
  45. -- part 2 (button)
  46. -- low flags: 80
  47. -- high flags: 2000
  48. -- rect: left=103 top=220 right=256 bottom=137
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 9301 / 9301
  51. -- text alignment: 1
  52. -- font id: 0
  53. -- text size: 12
  54. -- style flags: 0
  55. -- line height: 16
  56. -- part name: knife
  57. ----- HyperTalk script -----
  58. on mouseUp
  59.   global cardID,object,examFlag,dropFlag,useFlag,carried
  60.   put the name of the target into object
  61.   if examFlag = true then
  62.     put "A very sharp knife.  I'd be careful with it if I were you." into card field 2
  63.     exit mouseUp
  64.   end if
  65.   if dropFlag = true then
  66.     put false into dropFlag
  67.     hide object
  68.     subtract 1 from carried
  69.     go to card id cardID
  70.     send drop to card id cardID
  71.     exit mouseUp
  72.   end if
  73.   if useFlag = true then
  74.     put false into useFlag
  75.     go to card id cardID
  76.     send use to card id cardID
  77.     exit mouseUp
  78.   end if
  79. end mouseUp
  80.  
  81.  
  82.  
  83. -- part 3 (button)
  84. -- low flags: 80
  85. -- high flags: 2000
  86. -- rect: left=55 top=220 right=256 bottom=89
  87. -- title width / last selected line: 0
  88. -- icon id / first selected line: 1015 / 1015
  89. -- text alignment: 1
  90. -- font id: 0
  91. -- text size: 12
  92. -- style flags: 0
  93. -- line height: 16
  94. -- part name: nodule
  95. ----- HyperTalk script -----
  96. on mouseUp
  97.   global cardID,object,examFlag,dropFlag,useFlag,carried
  98.   put the name of the target into object
  99.   if examFlag = true then
  100.     put "A shiny silicon sphere. It feels hollow." into card field 2
  101.     exit mouseUp
  102.   end if
  103.   if dropFlag = true then
  104.     put false into dropFlag
  105.     hide object
  106.     subtract 1 from carried
  107.     go to card id cardID
  108.     send drop to card id cardID
  109.     exit mouseUp
  110.   end if
  111.   if useFlag = true then
  112.     put false into useFlag
  113.     go to card id cardID
  114.     send use to card id cardID
  115.     exit mouseUp
  116.   end if
  117. end mouseUp
  118.  
  119.  
  120.  
  121. -- part 4 (button)
  122. -- low flags: 80
  123. -- high flags: 2000
  124. -- rect: left=152 top=220 right=256 bottom=186
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 14953 / 14953
  127. -- text alignment: 1
  128. -- font id: 0
  129. -- text size: 12
  130. -- style flags: 0
  131. -- line height: 16
  132. -- part name: ladder
  133. ----- HyperTalk script -----
  134. on mouseUp
  135.   global cardID,object,examFlag,dropFlag,useFlag,carried
  136.   put the name of the target into object
  137.   if examFlag = true then
  138.     put "An unattached rope ladder, about 30 feet long." into card field 2
  139.     exit mouseUp
  140.   end if
  141.   if dropFlag = true then
  142.     put false into dropFlag
  143.     hide object
  144.     subtract 1 from carried
  145.     go to card id cardID
  146.     send drop to card id cardID
  147.     exit mouseUp
  148.   end if
  149.   if useFlag = true then
  150.     put false into useFlag
  151.     if cardID=24636 or cardID=25160 or cardID=29230 or cardID=29888
  152.     then
  153.     hide object
  154.     subtract 1 from carried
  155.   end if
  156.   go to card id cardID
  157.   send use to card id cardID
  158.   exit mouseUp
  159. end if
  160. end mouseUp
  161.  
  162.  
  163.  
  164. -- part 5 (button)
  165. -- low flags: 80
  166. -- high flags: 2000
  167. -- rect: left=80 top=174 right=210 bottom=114
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 24317 / 24317
  170. -- text alignment: 1
  171. -- font id: 0
  172. -- text size: 12
  173. -- style flags: 0
  174. -- line height: 16
  175. -- part name: key
  176. ----- HyperTalk script -----
  177. on mouseUp
  178.   global cardID,object,examFlag,dropFlag,useFlag,carried
  179.   put the name of the target into object
  180.   if examFlag = true then
  181.     put "A large brass key. Perhaps it belongs to a door..." into card field 2
  182.     exit mouseUp
  183.   end if
  184.   if dropFlag = true then
  185.     put false into dropFlag
  186.     hide object
  187.     subtract 1 from carried
  188.     go to card id cardID
  189.     send drop to card id cardID
  190.     exit mouseUp
  191.   end if
  192.   if useFlag = true then
  193.     put false into useFlag
  194.     go to card id cardID
  195.     send use to card id cardID
  196.     exit mouseUp
  197.   end if
  198. end mouseUp
  199.  
  200.  
  201.  
  202. -- part 6 (button)
  203. -- low flags: 80
  204. -- high flags: 2000
  205. -- rect: left=128 top=174 right=210 bottom=162
  206. -- title width / last selected line: 0
  207. -- icon id / first selected line: 1019 / 1019
  208. -- text alignment: 1
  209. -- font id: 0
  210. -- text size: 12
  211. -- style flags: 0
  212. -- line height: 16
  213. -- part name: bomb
  214. ----- HyperTalk script -----
  215. on mouseUp
  216.   global cardID,object,examFlag,dropFlag,useFlag,carried
  217.   put the name of the target into object
  218.   if examFlag = true then
  219.     put "A time bomb. You could 'use' it, but how long is the delay?" into card field 2
  220.     exit mouseUp
  221.   end if
  222.   if dropFlag = true then
  223.     put false into dropFlag
  224.     hide object
  225.     subtract 1 from carried
  226.     go to card id cardID
  227.     send drop to card id cardID
  228.     exit mouseUp
  229.   end if
  230.   if useFlag = true then
  231.     put false into useFlag
  232.     go to card id cardID
  233.     send use to card id cardID
  234.     exit mouseUp
  235.   end if
  236. end mouseUp
  237.  
  238.  
  239.  
  240. -- part 7 (button)
  241. -- low flags: 80
  242. -- high flags: 2000
  243. -- rect: left=128 top=129 right=165 bottom=162
  244. -- title width / last selected line: 0
  245. -- icon id / first selected line: 7012 / 7012
  246. -- text alignment: 1
  247. -- font id: 0
  248. -- text size: 12
  249. -- style flags: 0
  250. -- line height: 16
  251. -- part name: gem
  252. ----- HyperTalk script -----
  253. on mouseUp
  254.   global cardID,object,examFlag,dropFlag,useFlag,carried
  255.   put the name of the target into object
  256.   if examFlag = true then
  257.     put "The glowing gem of light. Very pretty." into card field 2
  258.     exit mouseUp
  259.   end if
  260.   if dropFlag = true then
  261.     put false into dropFlag
  262.     hide object
  263.     subtract 1 from carried
  264.     go to card id cardID
  265.     send drop to card id cardID
  266.     exit mouseUp
  267.   end if
  268.   if useFlag = true then
  269.     put false into useFlag
  270.     go to card id cardID
  271.     send use to card id cardID
  272.     exit mouseUp
  273.   end if
  274. end mouseUp
  275.  
  276.  
  277.  
  278. -- part 8 (button)
  279. -- low flags: 80
  280. -- high flags: 2000
  281. -- rect: left=80 top=129 right=165 bottom=114
  282. -- title width / last selected line: 0
  283. -- icon id / first selected line: 23078 / 23078
  284. -- text alignment: 1
  285. -- font id: 0
  286. -- text size: 12
  287. -- style flags: 0
  288. -- line height: 16
  289. -- part name: orb
  290. ----- HyperTalk script -----
  291. on mouseUp
  292.   global cardID,object,examFlag,dropFlag,useFlag,carried
  293.   put the name of the target into object
  294.   if examFlag = true then
  295.     put "The crystal orb of power!" into card field 2
  296.     exit mouseUp
  297.   end if
  298.   if dropFlag = true then
  299.     put false into dropFlag
  300.     hide object
  301.     subtract 1 from carried
  302.     go to card id cardID
  303.     send drop to card id cardID
  304.     exit mouseUp
  305.   end if
  306.   if useFlag = true then
  307.     put false into useFlag
  308.     go to card id cardID
  309.     send use to card id cardID
  310.     exit mouseUp
  311.   end if
  312. end mouseUp
  313.  
  314.  
  315.  
  316. -- part 10 (button)
  317. -- low flags: 00
  318. -- high flags: A003
  319. -- rect: left=233 top=139 right=158 bottom=312
  320. -- title width / last selected line: 0
  321. -- icon id / first selected line: 0 / 0
  322. -- text alignment: 1
  323. -- font id: 0
  324. -- text size: 12
  325. -- style flags: 0
  326. -- line height: 16
  327. -- part name: Use object
  328. ----- HyperTalk script -----
  329. on mouseUp
  330.   global examFlag,useFlag,dropFlag
  331.   put false into examFlag
  332.   put true into useFlag
  333.   put false into dropFlag
  334.   put "click on the object to use" into card field 1
  335. end mouseUp
  336.  
  337.  
  338.  
  339.  
  340. -- part 11 (button)
  341. -- low flags: 00
  342. -- high flags: A003
  343. -- rect: left=218 top=232 right=270 bottom=333
  344. -- title width / last selected line: 0
  345. -- icon id / first selected line: 0 / 0
  346. -- text alignment: 1
  347. -- font id: 0
  348. -- text size: 12
  349. -- style flags: 0
  350. -- line height: 16
  351. -- part name: Return to game
  352. ----- HyperTalk script -----
  353. on mouseUp
  354.   global cardID,examFlag,dropFlag,useFlag
  355.   put false into dropFlag
  356.   put false into examFlag
  357.   put false into useFlag
  358.   go to card id cardID
  359. end mouseUp
  360.  
  361.  
  362.  
  363. -- part 12 (button)
  364. -- low flags: 00
  365. -- high flags: A003
  366. -- rect: left=230 top=166 right=185 bottom=316
  367. -- title width / last selected line: 0
  368. -- icon id / first selected line: 0 / 0
  369. -- text alignment: 1
  370. -- font id: 0
  371. -- text size: 12
  372. -- style flags: 0
  373. -- line height: 16
  374. -- part name: Drop object
  375. ----- HyperTalk script -----
  376. on mouseUp
  377.   global examFlag,useFlag,dropFlag
  378.   put false into examFlag
  379.   put false into useFlag
  380.   put true into dropFlag
  381.   put "click on the object to drop" into card field 1
  382. end mouseUp
  383.  
  384.  
  385.  
  386.  
  387. -- part 14 (field)
  388. -- low flags: 01
  389. -- high flags: 0002
  390. -- rect: left=17 top=98 right=117 bottom=226
  391. -- title width / last selected line: 0
  392. -- icon id / first selected line: 0 / 0
  393. -- text alignment: 1
  394. -- font id: 0
  395. -- text size: 12
  396. -- style flags: 0
  397. -- line height: 16
  398. -- part name: 
  399.  
  400.  
  401. -- part 17 (button)
  402. -- low flags: 00
  403. -- high flags: A003
  404. -- rect: left=217 top=193 right=212 bottom=331
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 1
  408. -- font id: 0
  409. -- text size: 12
  410. -- style flags: 0
  411. -- line height: 16
  412. -- part name: Examine object
  413. ----- HyperTalk script -----
  414. on mouseUp
  415.   global examFlag,useFlag,dropFlag
  416.   put true into examFlag
  417.   put false into useFlag
  418.   put false into dropFlag
  419.   put "click on the object to examine" into card field 1
  420. end mouseUp
  421.  
  422.  
  423.  
  424.  
  425. -- part 18 (field)
  426. -- low flags: 01
  427. -- high flags: 0002
  428. -- rect: left=8 top=280 right=332 bottom=340
  429. -- title width / last selected line: 0
  430. -- icon id / first selected line: 0 / 0
  431. -- text alignment: 0
  432. -- font id: 3
  433. -- text size: 12
  434. -- style flags: 0
  435. -- line height: 16
  436. -- part name: 
  437.  
  438.  
  439. -- part 21 (field)
  440. -- low flags: 01
  441. -- high flags: 0000
  442. -- rect: left=263 top=62 right=81 bottom=287
  443. -- title width / last selected line: 0
  444. -- icon id / first selected line: 0 / 0
  445. -- text alignment: 0
  446. -- font id: 0
  447. -- text size: 12
  448. -- style flags: 0
  449. -- line height: 16
  450. -- part name: 
  451.  
  452.  
  453. -- part 22 (button)
  454. -- low flags: 00
  455. -- high flags: 0000
  456. -- rect: left=413 top=309 right=337 bottom=507
  457. -- title width / last selected line: 0
  458. -- icon id / first selected line: 0 / 0
  459. -- text alignment: 1
  460. -- font id: 0
  461. -- text size: 12
  462. -- style flags: 0
  463. -- line height: 16
  464. -- part name: 
  465. ----- HyperTalk script -----
  466. on mouseUp
  467.   answer "Do you really want to quit the game?" with "yes"or"no"
  468.   if it="no" then exit mouseUp
  469.   quitGame
  470. end mouseUp
  471.  
  472.  
  473.  
  474. -- part 23 (button)
  475. -- low flags: 00
  476. -- high flags: 8001
  477. -- rect: left=57 top=180 right=203 bottom=188
  478. -- title width / last selected line: 0
  479. -- icon id / first selected line: 0 / 0
  480. -- text alignment: 1
  481. -- font id: 0
  482. -- text size: 12
  483. -- style flags: 0
  484. -- line height: 16
  485. -- part name: no objects carried
  486.  
  487.  
  488. -- part contents for card part 14
  489. ----- text -----
  490. click on the object to examine
  491.  
  492. -- part contents for card part 21
  493. ----- text -----
  494. 0